{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
      <!--树状图-->
      <section class="col-lg-2 connectedSortable" style=" padding-right:0px; margin-bottom:10px;">
           <div class="sidebar" style="background-color:#fff; padding-bottom:0px;">
             <ul class="sidebar-menu" id="chan">
					{%foreach from=$class_lists key=key item=value%}
                    <li class="treeview {%if $key==$class_data.grade_id%}active{%/if%}" >
                      <a href="#">
                        <i class="glyphicon glyphicon-align-left"></i> <span>{%$value.grade_name%}</span> <i class="fa fa-angle-left pull-right"></i>
                      </a>
                          <ul class="treeview-menu" style="background-color:#fff;">
							{%foreach from=$value.class key=k item=v%}
                            <li {%if $v.class_id==$class_data.class_id%}class="active"{%/if%}><a href="index.php?a=syllabus.classlist&class_id={%$v.class_id%}"><i class="fa fa-angle-right"></i>  {%$v.class_name%}</a></li>
							{%/foreach%}
                          </ul>
                    </li>
					{%/foreach%}
              </ul>
            </div>
          
        </section>
        <!--树状图结束-->
        <section class="col-lg-10 connectedSortable">
         <div class="box box-default box-solid">
                <div class="box-header with-border">
                    <span class="fa fa-list" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">课程表列表</p>
                </div>
                <div class="box-body">
                     <table class="table table-bordered table-striped"  id="mytable">
                            <thead>
                                    <tr style="background-color:#5fb2dc;">
                                        <td>年级</td>
                                        <td>班级</td>
                                        <td>学期</td>
                                        <td>单双周</td>
                                        <td width="180">操作</td>
                                    </tr>
                            </thead>
                            <tbody>	
								{%foreach from=$syllabus_lists key=key item=value%}
									{%foreach from=$value key=k item=v%}
                                    <tr>
                                        <td>{%$class_data.grade_name%}</td>
                                        <td>{%$class_data.class_name%}</td>
                                        <td>{%$v.semester_name%}</td>
                                        <td>{%$v.double_name%}</td>                                        
										<td>
										<a href="index.php?a=syllabus.info&syllabus_double={%$k%}&class_id={%$class_data.class_id%}&semester_id={%$key%}" class="btn btn-success btn-sm" title="查看"><i class="fa fa-search"></i></a>

										<a href="index.php?a=syllabus.in&syllabus_double={%$k%}&class_id={%$class_data.class_id%}&semester_id={%$key%}" class="btn btn-info btn-sm" title="导入"><i class="fa  fa-sign-in"></i> </a>
										<a href="index.php?a=syllabus.outdata&class_id={%$class_data.class_id%}&semester_id={%$key%}&syllabus_double={%$k%}" class="btn btn-primary btn-sm" title="导出"><i class="fa fa-sign-out"></i></a>
										</td>
                                    </tr>
									{%/foreach%}
								{%/foreach%}
                             </tbody>	
                        </table> 
				</div><!--box-body -->
           </div><!--box box-default box-solid-->
        </section>   
      </div><!--row-->
    </section>
 </div>
 {%include file="index.footer.tpl.php"%}
